@extends('public.layouts.main')
@section('style-link')
    <style type="text/css">
        .box-profile .list-group-unbordered .list-group-item {padding: 10px 15px; border: 0 !important;}
        .advice-title {margin-top: 20px;padding-left: 20px;padding-bottom: 5px;border-bottom: 1px solid #d2d6de;}
        .advice-content {padding: 10px;border-bottom: 1px solid #d2d6de;}
        .data-detail {margin-bottom: 10px;}
    </style>
@endsection
@section('menu')
    @include('public.manager.menu')
@endsection
@section('content-header')
    <h5>
        <ol class="breadcrumb">
            <li><i class="fa fa-dashboard"></i> 党委 （超级管理员）</li>
            <li class="active">党员中心</li>
        </ol>
    </h5>
@endsection
@section('content')
    <div class="row">
        <div class="col-xs-12">
            <div class="col-md-3">
                <div class="box box-primary">
                    <div class="box-body box-profile">
                        <input type="hidden" class="user-id" value="{!! $id !!}">
                        <img class="profile-user-img img-responsive img-circle" src="/img/teacher.png" alt="User profile picture">
                        <h3 class="profile-username text-center user-realname"></h3>
                        <p class="text-muted text-center user-department"></p>
                        <ul class="list-group list-group-unbordered">
                            <li class="list-group-item">
                                <b>工号：</b> <span class="pull-right user-number"></span>
                            </li>
                            <li class="list-group-item">
                                <b>出生年月：</b> <span class="pull-right user-birthday"></span>
                            </li>
                            <li class="list-group-item">
                                <b>入党时间：</b> <span class="pull-right user-join-time"></span>
                            </li>
                            <li class="list-group-item">
                                <b>联系方式：</b> <span class="pull-right user-mobile"></span>
                            </li>
                            <li class="list-group-item">
                                <b>个人类型：</b> <span class="pull-right user-role"></span>
                            </li>
                            <li class="list-group-item">
                                <b>学历：</b> <span class="pull-right user-education"></span>
                            </li>
                            <li class="list-group-item">
                                <b>先锋指数：</b> <span class="pull-right user-score"></span>
                            </li>
                            <li class="list-group-item">
                                <b>评定等级：</b> <span class="pull-right user-star"></span>
                            </li>
                            <li class="list-group-item">
                                <input type="hidden" class="user-summary-text">
                                <b>自评：</b> <span class="pull-right user-summary"><a href="#" data-toggle="modal" data-target="#normal-dialog">查看</a></span>
                            </li>
                        </ul>
                        <div class="row">
                            <div class="col-sm-6">
                                <a class="btn btn-info" href="/manager/user/file-detail-{!! $id !!}.html">积分中心</a>
                            </div>
                            <div class="col-sm-6">
                                <a class="btn btn-info" href="/manager/user/increase-detail-{!! $id !!}.html">加分中心</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-9">
                <div class="box">
                    <div class="box-header">
                        <div class="post">
                            <div class="row">
                                <div class="col-xs-12">
                                    <div class="col-sm-9">
                                        <a class="btn btn-info btn-create" href="#" data-toggle="modal" data-target="#manager-advice">新建</a>
                                    </div>
                                    <div class="col-sm-3 pull-right">
                                        <select class="form-control select-year">
                                            @for($i = $year; $i <= $now; $i ++)
                                            <option value="{!! $i !!}">{!! $i !!}</option>
                                            @endfor
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <h4 class="advice-title">
                                        建议中心
                                    </h4>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="box-body">
                        <!-- advice list -->
                        <div class="data-list"></div>
                        <div class="page-list"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="manager-advice">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">党委建议</h4>
                </div>
                <div class="modal-body">
                    <div class="form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">建议内容</label>
                            <div class="col-sm-10">
                                <div class="col-sm-12">
                                    <textarea  name="content" class="advice-content hidden"></textarea>
                                    <script id="editor" type="text/plain"></script>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <div class="col-sm-2"></div>
                    <div class="col-sm-8">
                        <button type="button" class="btn btn-primary pull-left dialog-btn-save">提交</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    </div>
                    <div class="col-sm-2"></div>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>
@endsection
@section('script')
    <script type="text/javascript" src="/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="/ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript" src="/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script src="/js/manager/user-detail.js?v={!! time() !!}"></script>
@endsection